<{include file=$module.'/header.php'}>
<div class="page getcash">
	<header class="bar bar-nav common-bar-nav">
		<a class="icon pull-left fa fa-arrow-left back"></a>
		<h1 class="title">搜索<{$tit}></h1>
		<!-- <a class="pull-right external" href="/<{$controller}>/cash_log">提现记录</a> -->
	</header>
	<{include file=$module.'/nav.php'}>
	<div class="content">
		<ul class="takeout-list">
			<li>
				<!-- <div class="takeout-item-left">关键字</div> -->
				<div class="takeout-item-right">
					<div class="takeout-item-input">
						<input name="keyword" type="text" placeholder="请输入关键字" value="">
					</div>
					<a href="#" class="button button-big button-fill button-danger">搜索</a>
				</div>
			</li>
		</ul>
	</div>
</div>

<script>
$(function(){
	$('.button-danger').click(function(){
		var $this = $(this);
		if($this.hasClass('disabled')) {
			return false;
		}
		var keyword = $.trim($('[name="keyword"]').val());
		if(!keyword) {
			$.toast('关键字不能为空');
			return false;
		}
		$.toast('搜索中', "/<{$routeUrl}>/index?keyword="+keyword);
		
		// $this.addClass('disabled');

		// $.get("/<{$controller}>/index?keyword="+keyword, {}, function(response){
		// 	$.toast('搜索中', "/<{$controller}>/index?keyword="+keyword);
		// 	return false;
		// });
	});
});
</script>

<{include file=$module.'/footer.php'}>
